<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script type="text/javascript">
        let {foo,ball}={foo:21212,ball:"足球"};
        console.log(foo,ball);
        
        let { baz=foo } = { };
        
        console.log(baz);
        
        let obj = {p : [x, y] }={p:[111,{asd: 'world02'}]};
        //let {p : [x, y] } = {p : ['hello', {dx: 'world'}] };
        
        console.log(x,y);
        
        

        let xx=Symbol('admin');//Symbol表示独一无二
        console.log(xx);
        let yy=Symbol('admin');
        console.log(yy);
        console.log(xx==yy);


        let psnn={}

        let n=Symbol('first');

        psnn[Symbol('first')]="Symbol的键独一无二,值也独一无二"

        psnn[n]="对象第二个位置"

        console.log(psnn[n]);

        console.log(psnn[Symbol('first')]);
      
    </script>
</body>
</html>